import { createApp } from 'vue'
import App from './App.vue'
// element plus
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'
// 自己的icon图标
import 'virtual:svg-icons-register'
import gloablComponent from './components/general'
//引入模板的全局的样式
import '@/styles/index.scss'
// plugins
import plugins from './plugins'
// pinia 注册
// import pinia from './store'
// vue-router
// 动态路由
import '@/router/DynamicRouting'
// 路由守卫
import '@/router/RouteGuard'
import 'default-passive-events'
import baiduMap from 'vue3-baidu-map-gl'
import router from './router'

const app = createApp(App)
  .use(router)
  .use(ElementPlus, { locale: zhCn })
  .use(gloablComponent)
  .use(plugins)
  .use(baiduMap, {
    ak: 'wEvXfD0TnUyg1bHTLQDjqAMvxvqFN6HV',
    plugins: ['TrackAnimation']
  })
// .use(pinia)
app.mount('#app')
